#include "Sa2dDom.h"

physicalProperties::physicalProperties(){

}

double physicalProperties::getElasticity() {
	return elasticity;
}

double physicalProperties::getFriction() {
	return friction;
}

double physicalProperties::getMass() {
	return mass;
}

position *physicalProperties::getCenterOfMass() {
	return mycenterOfMass;
}

void physicalProperties::setElasticity(double elasticity) {
	this->elasticity = elasticity;
}

void physicalProperties::setFriction(double friction) {
	this->friction = friction;
}

void physicalProperties::setMass(double mass) {
	this->mass = mass;
}

void physicalProperties::setCenterOfMass(position *mycenterOfMass) {
	this->mycenterOfMass = mycenterOfMass;
}
double physicalProperties::getSurface_speed() {
	return surface_speed;
}

void physicalProperties::setSurface_speed(double surface_speed) {
	this->surface_speed = surface_speed;
}

string physicalProperties::toString(int indent){
	stringstream returnString;
	string tabs = this->getIndent(indent);

	returnString << tabs << "Physical Properties:\n";
	returnString << tabs << "Mass: " << mass << "\n";
	returnString << tabs << "Elasticity: " << elasticity << "\n";
	returnString << tabs << "Surface Speed: " << surface_speed << "\n";
	returnString << mycenterOfMass->toString(indent+1);

	return returnString.str();
}
